package com.guigu.eduservice.service;

import com.github.pagehelper.PageInfo;
import com.guigu.eduservice.entity.Equipment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.eduservice.vo.EquipmentVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 设备表（存储卖家发布的二手机械信息） 服务类
 * </p>
 *
 * @author Xiaosong
 * @since 2025-10-05
 */
public interface EquipmentService extends IService<Equipment> {
    //查询前四个设备
    List<Equipment> selectFour();
    //根据equipmentId查询设备
    Equipment selectById(Long equipmentId);
    //分页条件查询
    PageInfo<Equipment> queryEquipmentPage(@PathVariable Integer pageNo,
                                           @PathVariable Integer pageSize,
                                           @RequestBody EquipmentVo vo);
}
